Absolute Value
Definition

The absolute value of a number represents how far the number is from zero.


If a number is represented by the letter "n", then the absolute value of the number is represented by |n|.


The formal definition of absolute value is given below.

Absolute value of number

Note: |n| ≥ 0.


Examples
Absolute value of 3 example

Absolute value of -3 example